# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-sphinxcontrib-adadomain
_pkgname=sphinxcontrib-adadomain
pkgver=0.2
pkgrel=9
pkgdesc="Sphinx adadomain extension"
url="https://pypi.org/project/sphinxcontrib-adadomain"
arch="noarch"
license="BSD-2-Clause"
depends="py3-sphinx"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
	fix-imports.patch"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-sphinxcontrib-adadomain"                  # for backwards compatibility
provides="py-sphinxcontrib-adadomain=$pkgver-r$pkgrel" # for backwards compatibility

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	gpep517 install-wheel --destdir "$pkgdir" \
		.dist/*.whl
}

sha512sums="99d2b8b2dcb16e76c33c4a7965140c44ec3b4a166b69e930a68f27a1ddbb0871d77bc6b05fce79d161063561d21ebf5205218a05aebf9ff073e9ab2a3ba4e9a7  sphinxcontrib-adadomain-0.2.tar.gz
d3f3c278cef536cc7c9f0a8321baefce3dfdda9d81570d9be0b1451a5c8d38dd091abf7edb718b3516631aa6bb74bb679cfe9f4b2bb2f531e185dc8a05591da2  fix-imports.patch"
